# Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

if(TARGET pw_log AND TARGET pw_log_cmsis)
    add_library(nimble-pw-logging INTERFACE)

    target_include_directories(nimble-pw-logging
        INTERFACE
            inc
    )

    target_compile_definitions(nimble-pw-logging INTERFACE NIMBLE_LOG_BACKEND_PATH="modlog_pw_impl.h")

    target_link_libraries(nimble-pw-logging
    INTERFACE
            pw_log
            pw_log_cmsis
            pw_sys_io_cmsis_driver_rtos_lock
    )
endif()
